package vn.vfriends.id.service;

import java.io.Serializable;
import java.util.List;
import vn.vfriends.id.jpa.entity.User;

/**
 *
 * @author tuan@vfriends.vn
 */
public interface UserService extends Serializable {
    
    public void create(User user) throws Exception;
    
    public void edit(User user) throws Exception;
    
    public void destroy(Long id) throws Exception;
    
    public List<User> find();
    
    public List<User> find(int maxResults, int firstResult);
    
    public User find(Long id);
    
    public User findByUsername(String username);
    
    public User findByEmail(String email);
    
    public User findByVerificationKey(String key);
    
    public int getCount();
}
